package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceContratoCreditoDAO;
import br.org.credfaz.sis.modelo.TceContratoCredito;

public class AtualizaTceContratoCreditoAction {
	
private List<TceContratoCredito> ccredito;
	
	@Action(value="atualizaCcredito", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaCmutuo"})
	})
	public String execute(){
		ccredito = new TceContratoCreditoDAO().lista();
		return "ok";
	}
	public List<TceContratoCredito> getTceContratoCredito(){
		return ccredito;
	}

}
